package com.ulife.me.common.base.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import com.ulife.me.common.base.entity.CommonEntity;
import com.ulife.me.common.base.exception.ServiceException;

public interface CommonService<T extends CommonEntity,ID extends Serializable> {

	public List<T> list() throws ServiceException;
	
	public T get(ID id) throws ServiceException;
	
	public T save(T entity) throws ServiceException;
	
	public void delete(T entity) throws ServiceException;
	
	public void delete(ID id) throws ServiceException;
	
	public void save(Collection<T> entities) throws ServiceException;
}
